package com.ybliang.plat.common.rpc.core;

import java.io.Closeable;

public class ClosedableUtils {

    public static <T> void closeIfAbsent(T... t) {
        for (T tmp : t) {
            if(null != tmp && tmp instanceof Closeable){
                try {
                    ((Closeable) tmp).close();
                } catch (Exception e) {

                }
            }
        }
    }
}
